package dto

import "admin-system-go/model"

type ResourceBaseDTO struct {
	ParentId uint   `json:"parentId,omitempty" form:"parentId"`
	Name     string `json:"name,omitempty" form:"name"`
	Path     string `json:"path,omitempty" form:"path"`
	Method   string `json:"method,omitempty" form:"method"`
	Intro    string `json:"intro,omitempty" form:"intro"`
}

type ResourceDelDTO struct {
	ResourceIds []uint `json:"ids,omitempty" form:"ids"`
}

type ResourceQueryDTO struct {
	model.Model
	State uint8 `json:"state,omitempty" form:"state"`
	ResourceBaseDTO
	model.PageQuery
}
